<?php
if( $_SERVER['HTTP_REFERER'] == "" )
{
exit;
}
include("config.php");
$sql1="select  *  from records";
$result1=$mysqli->query($sql1);
$sql="select  a.num,count(*) as ci from (select  id,num from records order by id desc LIMIT 0, 100) as a group by a.num";
$result=$mysqli->query($sql);
if($result1->num_rows){
while($field=$result->fetch_object()){
    echo "<div class='issues'>数字：".$field->num;
    echo "，出现次数：".$field->ci;
    echo "</div>";
}
}else{
    echo "没有数据";
}

$mysqli->close();

?>